package com.eee.xiang.market.dao.mapper;

import com.eee.xiang.market.beans.TNoticeComment;
import com.eee.xiang.market.beans.TNoticeCommentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

public interface TNoticeCommentMapper {
    long countByExample(TNoticeCommentExample example);

    int deleteByExample(TNoticeCommentExample example);

    int deleteByPrimaryKey(String commentId);

    int insert(TNoticeComment record);

    int insertSelective(TNoticeComment record);

    List<TNoticeComment> selectByExampleWithBLOBs(TNoticeCommentExample example);

    List<TNoticeComment> selectByExample(TNoticeCommentExample example);

    TNoticeComment selectByPrimaryKey(String commentId);

    int updateByExampleSelective(@Param("record") TNoticeComment record, @Param("example") TNoticeCommentExample example);

    int updateByExampleWithBLOBs(@Param("record") TNoticeComment record, @Param("example") TNoticeCommentExample example);

    int updateByExample(@Param("record") TNoticeComment record, @Param("example") TNoticeCommentExample example);

    int updateByPrimaryKeySelective(TNoticeComment record);

    int updateByPrimaryKeyWithBLOBs(TNoticeComment record);

    int updateByPrimaryKey(TNoticeComment record);

    @Select("select * from t_notice_comment where notice_id = #{noticeId} order by create_datetime desc")
    @ResultMap("com.eee.xiang.market.dao.mapper.TNoticeCommentMapper.ResultMapWithBLOBs")
    List<TNoticeComment> selectNoticeCommentList(@Param("noticeId") String noticeId);
}